package com.wolfeyes.system.mapper;

import com.wolfeyes.system.domain.LoginUser;
import com.wolfeyes.system.domain.SysUser;
import com.wolfeyes.system.domain.vo.SysUserVo;

import java.util.List;

/**
 * @see Talk is cheap, Show me the code. -- Linus Torvalds
 * @title 系统用户映射器-Mapper接口
 * @author yanyljava
 * @email yanyljava@qq.com
 * @create 2022-01-12 21:48
*/
public interface SysUserMapper {
	
	List<SysUser> findAll(SysUser sysUser);

	SysUser findById(Long id);

	SysUser findByName(String userName);

	int add(SysUser sysUser);

	int update(SysUser sysUser);

	int delete(Long id);

	LoginUser findLoginUser(SysUserVo sysUserVo);

	/**
	 * 查出指定名字用户的所有id
	 * @param userName
	 * @return
	 */
	List<Long> findUsersByName(String userName);
}
